module joyUI {
	//支持行列的列表
	export class JTileList extends eui.List {
		public constructor() {
			super();		
			var tile:eui.TileLayout = new eui.TileLayout();		
			//tile.requestedRowCount = 4;	
			tile.requestedColumnCount = 3;			
			
			this.layout = tile;
		}
		protected createChildren():void{
			super.createChildren();
			this.scrollV = 150;
		}
		public scrollToRow(rowIndex:number):void{
			var tile:eui.TileLayout = <eui.TileLayout>this.layout;
			var h:number = tile.verticalGap+tile.rowHeight;
			h*=rowIndex;
			this.scrollV = h;
			
		}
		
		
	
	}


}
